The Dreamweaver JavaScript API > Enablers > dreamweaver.canRevertDocument()

 

dreamweaver.canRevertDocument()

Availability

Dreamweaver 3.0

Description

Checks whether Dreamweaver can perform a Revert (to the last-saved version) operation.

Arguments

documentObject

documentObject is the object at the root of a document's DOM tree (the value returned by dreamweaver.getDocumentDOM()).

Returns

A Boolean value indicating whether the document is in an unsaved state and a saved version of the document exists on a local drive.